package com.swsc.solarverse.common.enums;

/**
 * @Author chencl
 * @Date 2022/6/22 17:58
 * @Version 1.0
 * @Description OrganTypeEnums
 */
@lombok.Getter
@lombok.AllArgsConstructor
public enum OrganTypeEnums {
    HQ("HQ", "总部"),
    BO("BO", "分公司"),
    PS("PS", "电站"),
    ;
    private String type;
    private String name;

    public static String getName(String type){
        for(OrganTypeEnums e : OrganTypeEnums.values()){
            if(e.type.equals(type)){
                return e.name;
            }
        }
        return null;
    }
}
